import Vue from 'vue'
import App from './App'

import ColorUI from 'colorui'
Vue.use(ColorUI)

Vue.prototype.$api = {};//定义接口对象

Vue.config.productionTip = false

const globalJs = require('@/common/global.mixin.js')
Vue.mixin(globalJs)

import store from '@/store'

// 引入对小程序分享的mixin封装
let mpShare = require('@/common/mpShare.js');
Vue.mixin(mpShare);

let vuexStore = require('@/store/store.mixin.js')
Vue.mixin(vuexStore)

App.mpType = 'app'

const app = new Vue({
	  store,
	...App
})

// api
import Api from '@/common/api.js'
Vue.use(Api, app)

app.$mount()